package com.menggudf.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="diagnosis")
public class Diagnosis implements Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = -8139946960157130083L;
    
    private int id;
    private String illnessId;
    private String scheme;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    
    @Column(name="illnessId",unique=true,nullable=false)
    public String getIllnessId() {
        return illnessId;
    }
    public void setIllnessId(String illnessId) {
        this.illnessId = illnessId;
    }
    
    @Column(name="scheme",nullable=false)
    public String getScheme() {
        return scheme;
    }
    public void setScheme(String scheme) {
        this.scheme = scheme;
    }
    
}
